package com.yaoge.dao.realize;

import com.yaoge.dao.StudentDao;
import com.yaoge.domain.Student;
import com.yaoge.uitl.MyBatisUtil;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

public class StudentRel implements StudentDao {
    public List<Student> selectStudents() {

        SqlSession sqlSession=MyBatisUtil.getSqlSession();
        String sqlId="com.yaoge.dao.StudentDao.selectStudents";
        List<Student> studentList= sqlSession.selectList(sqlId);
        System.out.println("经过了一层代理");
        return studentList;
    }
}
